package com.itboye.ihomebank.adapter;

import java.util.List;

import android.content.Context;

import com.itboye.ihomebank.R;
import com.itboye.ihomebank.bean.KeyBean;
import com.itboye.ihomebank.bean.KeyBean.KeyItem;
import com.itboye.ihomebank.support.commonadapter.MutiplyCommonAdapter;
import com.itboye.ihomebank.support.commonadapter.ViewHolder;
/***
 * 示例adapter(钥匙)
 * @author mr.w
 *
 */
public class KeyAdapter extends MutiplyCommonAdapter<KeyItem>{

	int position;
	List<KeyBean.KeyItem> keyArray;
	public KeyAdapter(Context context, List<KeyBean.KeyItem> datas, int... layoutId) {
		super(context, datas, layoutId);
		// TODO Auto-generated constructor stubkeyArray
		keyArray=datas;
	}

	@Override
	public int getItemViewType(int position) {
		// TODO Auto-generated method stub
		
		return 0;
	}

	@Override
	public void convert(ViewHolder holder, KeyItem t, int type,final int position) {
		holder.setText(R.id.my_key_type, t.getLocakAlias());
//		XImageLoader.load(t.getUrl(), (ImageView)(holder.getView(R.id.my_key_view)));
	}

	@Override
	public void getItemPosition(int position) {
		// TODO Auto-generated method stub
		this.position=position;
	}

	

}
